﻿@using MobileStore.Bussiness.Models
@{
    Category category = ViewData["Category"] as Category;
    List<Product> ListProducts = ViewData["ListProducts"] as List<Product>;
}

@if (category != null && ListProducts.Count > 0)
{
<div class="products_list products_slider">
    <h2 class="sub_title">@category.Name</h2>
    <ul id="first-carousel" class="first-and-second-carousel jcarousel-skin-tango">
    @foreach (Product pr in ListProducts)
    {
        <li> <a class="product_image" href="@Url.Action("ViewDetail", "ProductDetail", new { ID=pr.ProductID})"><img alt="@pr.Name" src="@Url.Content(pr.ImageSource)"/></a>
            <div class="product_info">
                <h3><a href="@Url.Action("ViewDetail", "ProductDetail", new { ID = pr.ProductID })">@pr.Name</a></h3>
                <small>@pr.Description</small> </div>
            <div class="price_info">@* <a href="#">+ Add to wishlist</a>*@
                <button class="price_add" title="" type="button"><span class="pr_price">$ @pr.Price</span><span class="pr_add">Đặt mua</span></button>
            </div>
        </li>
    }   
    </ul>
</div>
}